package c.e.a.b.f.b;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Looper;
import android.os.SystemClock;
import c.e.a.b.b.h.b.g;
import c.e.a.b.b.i.a;
import c.e.a.b.b.j.c;
import com.google.android.gms.measurement.internal.zzz;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final class q7 extends a5 {
    public final k8 c;
    public i3 d;
    public volatile Boolean e;
    public final i f;
    public final e9 g;
    public final List<Runnable> h = new ArrayList();
    public final i i;

    public q7(u4 u4Var) {
        super(u4Var);
        this.g = new e9(u4Var.n);
        this.c = new k8(this);
        this.f = new p7(this, u4Var);
        this.i = new z7(this, u4Var);
    }

    public static void x(q7 q7Var, ComponentName componentName) {
        q7Var.g();
        if (q7Var.d != null) {
            q7Var.d = null;
            q7Var.d().n.b("Disconnected from device MeasurementService", componentName);
            q7Var.g();
            q7Var.C();
        }
    }

    public final void A(AtomicReference<String> atomicReference) {
        g();
        t();
        z(new v7(this, atomicReference, I(false)));
    }

    public final boolean B() {
        g();
        t();
        return this.d != null;
    }

    public final void C() {
        g();
        t();
        if (!B()) {
            if (G()) {
                k8 k8Var = this.c;
                k8Var.c.g();
                Context context = k8Var.c.a.a;
                synchronized (k8Var) {
                    if (k8Var.a) {
                        k8Var.c.d().n.a("Connection attempt already in progress");
                    } else if (k8Var.b == null || !(k8Var.b.d() || k8Var.b.c())) {
                        k8Var.b = new r3(context, Looper.getMainLooper(), k8Var, k8Var);
                        k8Var.c.d().n.a("Connecting to remote service");
                        k8Var.a = true;
                        k8Var.b.a();
                    } else {
                        k8Var.c.d().n.a("Already awaiting connection attempt");
                    }
                }
                return;
            }
            if (!this.a.g.C()) {
                List queryIntentServices = this.a.a.getPackageManager().queryIntentServices(new Intent().setClassName(this.a.a, "com.google.android.gms.measurement.AppMeasurementService"), 65536);
                Object obj = (queryIntentServices == null || queryIntentServices.size() <= 0) ? null : 1;
                if (obj != null) {
                    Intent intent = new Intent("com.google.android.gms.measurement.START");
                    intent.setComponent(new ComponentName(this.a.a, "com.google.android.gms.measurement.AppMeasurementService"));
                    k8 k8Var2 = this.c;
                    k8Var2.c.g();
                    Context context2 = k8Var2.c.a.a;
                    a a = a.a();
                    synchronized (k8Var2) {
                        if (k8Var2.a) {
                            k8Var2.c.d().n.a("Connection attempt already in progress");
                        } else {
                            k8Var2.c.d().n.a("Using local app measurement service");
                            k8Var2.a = true;
                            k8 k8Var3 = k8Var2.c.c;
                            Objects.requireNonNull(a);
                            context2.getClass().getName();
                            a.b(context2, intent, k8Var3, 129);
                        }
                    }
                    return;
                }
                d().f.a("Unable to use remote or local measurement implementation. Please register the AppMeasurementService service in the app manifest");
            }
        }
    }

    public final void D() {
        g();
        t();
        k8 k8Var = this.c;
        if (k8Var.b != null && (k8Var.b.c() || k8Var.b.d())) {
            r3 r3Var = k8Var.b;
            r3Var.t.incrementAndGet();
            synchronized (r3Var.k) {
                int size = r3Var.k.size();
                for (int i = 0; i < size; i++) {
                    g gVar = (g) r3Var.k.get(i);
                    synchronized (gVar) {
                        gVar.a = null;
                    }
                }
                r3Var.k.clear();
            }
            synchronized (r3Var.g) {
                r3Var.h = null;
            }
            r3Var.e(1, null);
        }
        k8Var.b = null;
        try {
            a a = a.a();
            Context context = this.a.a;
            k8 k8Var2 = this.c;
            Objects.requireNonNull(a);
            context.unbindService(k8Var2);
        } catch (IllegalArgumentException | IllegalStateException unused) {
        }
        this.d = null;
    }

    public final boolean E() {
        g();
        t();
        if (!this.a.g.o(p.J0)) {
            return false;
        }
        if (G() && k().y0() < ((Integer) p.K0.a(null)).intValue()) {
            return false;
        }
        return true;
    }

    public final void F() {
        g();
        e9 e9Var = this.g;
        Objects.requireNonNull((c) e9Var.a);
        e9Var.b = SystemClock.elapsedRealtime();
        this.f.b(((Long) p.J.a(null)).longValue());
    }

    /* JADX WARNING: Removed duplicated region for block: B:43:0x0103  */
    /* JADX WARNING: Removed duplicated region for block: B:38:0x00ea  */
    /* JADX WARNING: Removed duplicated region for block: B:43:0x0103  */
    public final boolean G() {
        /*
        r7 = this;
        r7.g();
        r7.t();
        r0 = r7.e;
        if (r0 != 0) goto L_0x011e;
    L_0x000a:
        r7.g();
        r7.t();
        r0 = r7.l();
        r0.g();
        r1 = r0.w();
        r2 = "use_service";
        r1 = r1.contains(r2);
        r3 = 0;
        if (r1 != 0) goto L_0x0026;
    L_0x0024:
        r0 = 0;
        goto L_0x0032;
    L_0x0026:
        r0 = r0.w();
        r0 = r0.getBoolean(r2, r3);
        r0 = java.lang.Boolean.valueOf(r0);
    L_0x0032:
        r1 = 1;
        if (r0 == 0) goto L_0x003d;
    L_0x0035:
        r4 = r0.booleanValue();
        if (r4 == 0) goto L_0x003d;
    L_0x003b:
        goto L_0x0118;
    L_0x003d:
        r4 = r7.o();
        r4.t();
        r4 = r4.j;
        if (r4 != r1) goto L_0x004a;
    L_0x0048:
        goto L_0x00e7;
    L_0x004a:
        r4 = r7.d();
        r4 = r4.n;
        r5 = "Checking service availability";
        r4.a(r5);
        r4 = r7.k();
        java.util.Objects.requireNonNull(r4);
        r5 = c.e.a.b.b.b.b;
        r4 = r4.a;
        r4 = r4.a;
        r6 = 12451000; // 0xbdfcb8 float:1.7447567E-38 double:6.1516114E-317;
        r4 = r5.a(r4, r6);
        if (r4 == 0) goto L_0x00dc;
    L_0x006b:
        if (r4 == r1) goto L_0x00ce;
    L_0x006d:
        r5 = 2;
        if (r4 == r5) goto L_0x00b0;
    L_0x0070:
        r0 = 3;
        if (r4 == r0) goto L_0x00a3;
    L_0x0073:
        r0 = 9;
        if (r4 == r0) goto L_0x0097;
    L_0x0077:
        r0 = 18;
        if (r4 == r0) goto L_0x008b;
    L_0x007b:
        r0 = r7.d();
        r0 = r0.i;
        r1 = java.lang.Integer.valueOf(r4);
        r4 = "Unexpected service status";
        r0.b(r4, r1);
        goto L_0x00ae;
    L_0x008b:
        r0 = r7.d();
        r0 = r0.i;
        r4 = "Service updating";
        r0.a(r4);
        goto L_0x00e7;
    L_0x0097:
        r0 = r7.d();
        r0 = r0.i;
        r1 = "Service invalid";
        r0.a(r1);
        goto L_0x00ae;
    L_0x00a3:
        r0 = r7.d();
        r0 = r0.i;
        r1 = "Service disabled";
        r0.a(r1);
    L_0x00ae:
        r1 = 0;
        goto L_0x00d9;
    L_0x00b0:
        r4 = r7.d();
        r4 = r4.m;
        r5 = "Service container out of date";
        r4.a(r5);
        r4 = r7.k();
        r4 = r4.y0();
        r5 = 17443; // 0x4423 float:2.4443E-41 double:8.618E-320;
        if (r4 >= r5) goto L_0x00c8;
    L_0x00c7:
        goto L_0x00d9;
    L_0x00c8:
        if (r0 != 0) goto L_0x00cb;
    L_0x00ca:
        goto L_0x00cc;
    L_0x00cb:
        r1 = 0;
    L_0x00cc:
        r0 = 0;
        goto L_0x00e8;
    L_0x00ce:
        r0 = r7.d();
        r0 = r0.n;
        r4 = "Service missing";
        r0.a(r4);
    L_0x00d9:
        r0 = r1;
        r1 = 0;
        goto L_0x00e8;
    L_0x00dc:
        r0 = r7.d();
        r0 = r0.n;
        r4 = "Service available";
        r0.a(r4);
    L_0x00e7:
        r0 = 1;
    L_0x00e8:
        if (r1 != 0) goto L_0x0100;
    L_0x00ea:
        r4 = r7.a;
        r4 = r4.g;
        r4 = r4.C();
        if (r4 == 0) goto L_0x0100;
    L_0x00f4:
        r0 = r7.d();
        r0 = r0.f;
        r4 = "No way to upload. Consider using the full version of Analytics";
        r0.a(r4);
        goto L_0x0101;
    L_0x0100:
        r3 = r0;
    L_0x0101:
        if (r3 == 0) goto L_0x0118;
    L_0x0103:
        r0 = r7.l();
        r0.g();
        r0 = r0.w();
        r0 = r0.edit();
        r0.putBoolean(r2, r1);
        r0.apply();
    L_0x0118:
        r0 = java.lang.Boolean.valueOf(r1);
        r7.e = r0;
    L_0x011e:
        r0 = r7.e;
        r0 = r0.booleanValue();
        return r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.q7.G():boolean");
    }

    public final void H() {
        g();
        d().n.b("Processing queued up service tasks", Integer.valueOf(this.h.size()));
        for (Runnable run : this.h) {
            try {
                run.run();
            } catch (Exception e) {
                d().f.b("Task exception while flushing queue", e);
            }
        }
        this.h.clear();
        this.i.c();
    }

    /* JADX WARNING: Removed duplicated region for block: B:55:0x0181  */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x017a  */
    /* JADX WARNING: Removed duplicated region for block: B:65:0x01e4  */
    /* JADX WARNING: Removed duplicated region for block: B:64:0x01e1  */
    /* JADX WARNING: Removed duplicated region for block: B:71:0x0212  */
    /* JADX WARNING: Removed duplicated region for block: B:68:0x01fa  */
    /* JADX WARNING: Removed duplicated region for block: B:75:0x021e  */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x017a  */
    /* JADX WARNING: Removed duplicated region for block: B:55:0x0181  */
    /* JADX WARNING: Removed duplicated region for block: B:58:0x01ac  */
    /* JADX WARNING: Removed duplicated region for block: B:64:0x01e1  */
    /* JADX WARNING: Removed duplicated region for block: B:65:0x01e4  */
    /* JADX WARNING: Removed duplicated region for block: B:68:0x01fa  */
    /* JADX WARNING: Removed duplicated region for block: B:71:0x0212  */
    /* JADX WARNING: Removed duplicated region for block: B:75:0x021e  */
    /* JADX WARNING: Removed duplicated region for block: B:55:0x0181  */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x017a  */
    /* JADX WARNING: Removed duplicated region for block: B:58:0x01ac  */
    /* JADX WARNING: Removed duplicated region for block: B:65:0x01e4  */
    /* JADX WARNING: Removed duplicated region for block: B:64:0x01e1  */
    /* JADX WARNING: Removed duplicated region for block: B:71:0x0212  */
    /* JADX WARNING: Removed duplicated region for block: B:68:0x01fa  */
    /* JADX WARNING: Removed duplicated region for block: B:75:0x021e  */
    public final com.google.android.gms.measurement.internal.zzn I(boolean r36) {
        /*
        r35 = this;
        r1 = r35.o();
        if (r36 == 0) goto L_0x0010;
    L_0x0006:
        r0 = r35.d();
        r0 = r0.E();
        r14 = r0;
        goto L_0x0011;
    L_0x0010:
        r14 = 0;
    L_0x0011:
        r1.g();
        r33 = new com.google.android.gms.measurement.internal.zzn;
        r1.t();
        r4 = r1.c;
        r1.t();
        r5 = r1.k;
        r1.t();
        r6 = r1.d;
        r1.t();
        r0 = r1.e;
        r7 = (long) r0;
        r1.t();
        r9 = r1.f;
        r1.t();
        r1.g();
        r10 = r1.g;
        r3 = 0;
        r12 = 0;
        r0 = (r10 > r12 ? 1 : (r10 == r12 ? 0 : -1));
        if (r0 != 0) goto L_0x00b9;
    L_0x003f:
        r0 = r1.a;
        r10 = r0.t();
        r0 = r1.a;
        r0 = r0.a;
        r11 = r0.getPackageName();
        r10.g();
        b.i.b.f.N(r11);
        r15 = r0.getPackageManager();
        r12 = c.e.a.b.f.b.t9.x0();
        r18 = -1;
        if (r12 != 0) goto L_0x006b;
    L_0x005f:
        r0 = r10.d();
        r0 = r0.f;
        r10 = "Could not get MD5 instance";
        r0.a(r10);
        goto L_0x00a6;
    L_0x006b:
        if (r15 == 0) goto L_0x00b5;
    L_0x006d:
        r11 = r10.o0(r0, r11);	 Catch:{ NameNotFoundException -> 0x00a9 }
        if (r11 != 0) goto L_0x00b5;
    L_0x0073:
        r0 = c.e.a.b.b.k.b.a(r0);	 Catch:{ NameNotFoundException -> 0x00a9 }
        r11 = r10.a;	 Catch:{ NameNotFoundException -> 0x00a9 }
        r11 = r11.a;	 Catch:{ NameNotFoundException -> 0x00a9 }
        r11 = r11.getPackageName();	 Catch:{ NameNotFoundException -> 0x00a9 }
        r13 = 64;
        r0 = r0.b(r11, r13);	 Catch:{ NameNotFoundException -> 0x00a9 }
        r0 = r0.signatures;	 Catch:{ NameNotFoundException -> 0x00a9 }
        if (r0 == 0) goto L_0x009b;
    L_0x0089:
        r11 = r0.length;	 Catch:{ NameNotFoundException -> 0x00a9 }
        if (r11 <= 0) goto L_0x009b;
    L_0x008c:
        r0 = r0[r3];	 Catch:{ NameNotFoundException -> 0x00a9 }
        r0 = r0.toByteArray();	 Catch:{ NameNotFoundException -> 0x00a9 }
        r0 = r12.digest(r0);	 Catch:{ NameNotFoundException -> 0x00a9 }
        r18 = c.e.a.b.f.b.t9.w(r0);	 Catch:{ NameNotFoundException -> 0x00a9 }
        goto L_0x00a6;
    L_0x009b:
        r0 = r10.d();	 Catch:{ NameNotFoundException -> 0x00a9 }
        r0 = r0.i;	 Catch:{ NameNotFoundException -> 0x00a9 }
        r11 = "Could not get signatures";
        r0.a(r11);	 Catch:{ NameNotFoundException -> 0x00a9 }
    L_0x00a6:
        r10 = r18;
        goto L_0x00b7;
    L_0x00a9:
        r0 = move-exception;
        r10 = r10.d();
        r10 = r10.f;
        r11 = "Package name not found";
        r10.b(r11, r0);
    L_0x00b5:
        r10 = 0;
    L_0x00b7:
        r1.g = r10;
    L_0x00b9:
        r12 = r1.g;
        r0 = r1.a;
        r15 = r0.i();
        r0 = r1.l();
        r0 = r0.v;
        r10 = 1;
        r0 = r0 ^ r10;
        r1.g();
        r11 = r1.a;
        r11 = r11.i();
        if (r11 != 0) goto L_0x00d9;
    L_0x00d4:
        r20 = r15;
    L_0x00d6:
        r2 = 0;
        goto L_0x015e;
    L_0x00d9:
        r11 = c.e.a.b.e.c.qb.b;
        r11 = r11.q();
        r11 = (c.e.a.b.e.c.tb) r11;
        r11 = r11.q();
        if (r11 == 0) goto L_0x00ff;
    L_0x00e7:
        r11 = r1.a;
        r11 = r11.g;
        r2 = c.e.a.b.f.b.p.l0;
        r2 = r11.o(r2);
        if (r2 == 0) goto L_0x00ff;
    L_0x00f3:
        r2 = r1.d();
        r2 = r2.n;
        r11 = "Disabled IID for tests.";
        r2.a(r11);
        goto L_0x00d4;
    L_0x00ff:
        r2 = r1.a;	 Catch:{ ClassNotFoundException -> 0x00d4 }
        r2 = r2.a;	 Catch:{ ClassNotFoundException -> 0x00d4 }
        r2 = r2.getClassLoader();	 Catch:{ ClassNotFoundException -> 0x00d4 }
        r11 = "com.google.firebase.analytics.FirebaseAnalytics";
        r2 = r2.loadClass(r11);	 Catch:{ ClassNotFoundException -> 0x00d4 }
        if (r2 != 0) goto L_0x0110;
    L_0x010f:
        goto L_0x00d4;
    L_0x0110:
        r11 = "getInstance";
        r3 = new java.lang.Class[r10];	 Catch:{ Exception -> 0x014f }
        r19 = android.content.Context.class;
        r20 = 0;
        r3[r20] = r19;	 Catch:{ Exception -> 0x014f }
        r3 = r2.getDeclaredMethod(r11, r3);	 Catch:{ Exception -> 0x014f }
        r11 = new java.lang.Object[r10];	 Catch:{ Exception -> 0x014f }
        r10 = r1.a;	 Catch:{ Exception -> 0x014f }
        r10 = r10.a;	 Catch:{ Exception -> 0x014f }
        r20 = r15;
        r15 = 0;
        r11[r15] = r10;	 Catch:{ Exception -> 0x0151 }
        r10 = 0;
        r3 = r3.invoke(r10, r11);	 Catch:{ Exception -> 0x0151 }
        if (r3 != 0) goto L_0x0132;
    L_0x0130:
        r2 = r10;
        goto L_0x015e;
    L_0x0132:
        r11 = "getFirebaseInstanceId";
        r10 = new java.lang.Class[r15];	 Catch:{ Exception -> 0x0143 }
        r2 = r2.getDeclaredMethod(r11, r10);	 Catch:{ Exception -> 0x0143 }
        r10 = new java.lang.Object[r15];	 Catch:{ Exception -> 0x0143 }
        r2 = r2.invoke(r3, r10);	 Catch:{ Exception -> 0x0143 }
        r2 = (java.lang.String) r2;	 Catch:{ Exception -> 0x0143 }
        goto L_0x015e;
    L_0x0143:
        r2 = r1.d();
        r2 = r2.k;
        r3 = "Failed to retrieve Firebase Instance Id";
        r2.a(r3);
        goto L_0x00d6;
    L_0x014f:
        r20 = r15;
    L_0x0151:
        r2 = r1.d();
        r2 = r2.j;
        r3 = "Failed to obtain Firebase Analytics instance";
        r2.a(r3);
        goto L_0x00d6;
    L_0x015e:
        r21 = 0;
        r3 = r1.a;
        r10 = r3.o();
        r10 = r10.j;
        r10 = r10.a();
        r10 = java.lang.Long.valueOf(r10);
        r23 = r10.longValue();
        r15 = 0;
        r11 = (r23 > r15 ? 1 : (r23 == r15 ? 0 : -1));
        if (r11 != 0) goto L_0x0181;
    L_0x017a:
        r10 = r3.G;
        r17 = r2;
        r23 = r10;
        goto L_0x018f;
    L_0x0181:
        r17 = r2;
        r2 = r3.G;
        r10 = r10.longValue();
        r2 = java.lang.Math.min(r2, r10);
        r23 = r2;
    L_0x018f:
        r1.t();
        r2 = r1.j;
        r3 = r1.a;
        r3 = r3.g;
        r3 = r3.y();
        r25 = r3.booleanValue();
        r3 = r1.a;
        r3 = r3.g;
        r10 = "google_analytics_ssaid_collection_enabled";
        r3 = r3.w(r10);
        if (r3 == 0) goto L_0x01b5;
    L_0x01ac:
        r3 = r3.booleanValue();
        if (r3 == 0) goto L_0x01b3;
    L_0x01b2:
        goto L_0x01b5;
    L_0x01b3:
        r3 = 0;
        goto L_0x01b6;
    L_0x01b5:
        r3 = 1;
    L_0x01b6:
        r3 = java.lang.Boolean.valueOf(r3);
        r26 = r3.booleanValue();
        r3 = r1.l();
        r3.g();
        r3 = r3.w();
        r10 = "deferred_analytics_collection";
        r11 = 0;
        r27 = r3.getBoolean(r10, r11);
        r1.t();
        r15 = r1.l;
        r3 = r1.a;
        r3 = r3.g;
        r10 = "google_analytics_default_allow_ad_personalization_signals";
        r3 = r3.w(r10);
        if (r3 != 0) goto L_0x01e4;
    L_0x01e1:
        r28 = 0;
        goto L_0x01f0;
    L_0x01e4:
        r3 = r3.booleanValue();
        r10 = 1;
        r3 = r3 ^ r10;
        r3 = java.lang.Boolean.valueOf(r3);
        r28 = r3;
    L_0x01f0:
        r10 = r1.h;
        r3 = r1.i;
        r16 = c.e.a.b.e.c.fa.a();
        if (r16 == 0) goto L_0x0212;
    L_0x01fa:
        r16 = r3;
        r3 = r1.a;
        r3 = r3.g;
        r29 = r10;
        r10 = c.e.a.b.f.b.p.j0;
        r3 = r3.o(r10);
        if (r3 == 0) goto L_0x0216;
    L_0x020a:
        r1.t();
        r3 = r1.m;
        r31 = r3;
        goto L_0x0218;
    L_0x0212:
        r16 = r3;
        r29 = r10;
    L_0x0216:
        r31 = 0;
    L_0x0218:
        r3 = c.e.a.b.e.c.v8.a();
        if (r3 == 0) goto L_0x0237;
    L_0x021e:
        r3 = r1.a;
        r3 = r3.g;
        r10 = c.e.a.b.f.b.p.H0;
        r3 = r3.o(r10);
        if (r3 == 0) goto L_0x0237;
    L_0x022a:
        r1 = r1.l();
        r1 = r1.y();
        r1 = r1.d();
        goto L_0x0239;
    L_0x0237:
        r1 = "";
    L_0x0239:
        r32 = r1;
        r10 = 33025; // 0x8101 float:4.6278E-41 double:1.63165E-319;
        r1 = r16;
        r3 = r33;
        r34 = r15;
        r15 = r20;
        r16 = r0;
        r18 = r21;
        r20 = r23;
        r22 = r2;
        r23 = r25;
        r24 = r26;
        r25 = r27;
        r26 = r34;
        r27 = r28;
        r28 = r29;
        r30 = r1;
        r3.m8206init(r4, r5, r6, r7, r9, r10, r12, r14, r15, r16, r17, r18, r20, r22, r23, r24, r25, r26, r27, r28, r30, r31, r32);
        return r33;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.q7.I(boolean):com.google.android.gms.measurement.internal.zzn");
    }

    public final boolean v() {
        return false;
    }

    /* JADX WARNING: Removed duplicated region for block: B:155:0x0244  */
    /* JADX WARNING: Removed duplicated region for block: B:154:0x023b  */
    /* JADX WARNING: Removed duplicated region for block: B:162:0x0255  */
    /* JADX WARNING: Removed duplicated region for block: B:154:0x023b  */
    /* JADX WARNING: Removed duplicated region for block: B:155:0x0244  */
    /* JADX WARNING: Removed duplicated region for block: B:162:0x0255  */
    /* JADX WARNING: Removed duplicated region for block: B:155:0x0244  */
    /* JADX WARNING: Removed duplicated region for block: B:154:0x023b  */
    /* JADX WARNING: Removed duplicated region for block: B:162:0x0255  */
    /* JADX WARNING: Missing exception handler attribute for start block: B:70:0x0130 */
    /* JADX WARNING: Removed duplicated region for block: B:134:0x01f4  */
    /* JADX WARNING: Removed duplicated region for block: B:190:0x0218 A:{SYNTHETIC} */
    /* JADX WARNING: Removed duplicated region for block: B:136:0x01f9  */
    /* JADX WARNING: Removed duplicated region for block: B:116:0x01c8 A:{SYNTHETIC, Splitter:B:116:0x01c8} */
    /* JADX WARNING: Removed duplicated region for block: B:122:0x01df  */
    /* JADX WARNING: Removed duplicated region for block: B:188:0x0218 A:{SYNTHETIC} */
    /* JADX WARNING: Removed duplicated region for block: B:124:0x01e4  */
    /* JADX WARNING: Removed duplicated region for block: B:143:0x0210  */
    /* JADX WARNING: Removed duplicated region for block: B:192:0x0218 A:{SYNTHETIC} */
    /* JADX WARNING: Removed duplicated region for block: B:145:0x0215  */
    /* JADX WARNING: Removed duplicated region for block: B:134:0x01f4  */
    /* JADX WARNING: Removed duplicated region for block: B:136:0x01f9  */
    /* JADX WARNING: Removed duplicated region for block: B:190:0x0218 A:{SYNTHETIC} */
    /* JADX WARNING: Removed duplicated region for block: B:116:0x01c8 A:{SYNTHETIC, Splitter:B:116:0x01c8} */
    /* JADX WARNING: Removed duplicated region for block: B:122:0x01df  */
    /* JADX WARNING: Removed duplicated region for block: B:124:0x01e4  */
    /* JADX WARNING: Removed duplicated region for block: B:188:0x0218 A:{SYNTHETIC} */
    /* JADX WARNING: Removed duplicated region for block: B:148:0x0222  */
    /* JADX WARNING: Removed duplicated region for block: B:150:0x0227  */
    /* JADX WARNING: Missing exception handler attribute for start block: B:40:0x00cb */
    /* JADX WARNING: Missing exception handler attribute for start block: B:54:0x00fb */
    /* JADX WARNING: Removed duplicated region for block: B:134:0x01f4  */
    /* JADX WARNING: Removed duplicated region for block: B:190:0x0218 A:{SYNTHETIC} */
    /* JADX WARNING: Removed duplicated region for block: B:136:0x01f9  */
    /* JADX WARNING: Removed duplicated region for block: B:116:0x01c8 A:{SYNTHETIC, Splitter:B:116:0x01c8} */
    /* JADX WARNING: Removed duplicated region for block: B:122:0x01df  */
    /* JADX WARNING: Removed duplicated region for block: B:188:0x0218 A:{SYNTHETIC} */
    /* JADX WARNING: Removed duplicated region for block: B:124:0x01e4  */
    /* JADX WARNING: Removed duplicated region for block: B:148:0x0222  */
    /* JADX WARNING: Removed duplicated region for block: B:150:0x0227  */
    /* JADX WARNING: Can't wrap try/catch for region: R(5:40|41|42|43|196) */
    /* JADX WARNING: Can't wrap try/catch for region: R(4:54|55|56|57) */
    /* JADX WARNING: Can't wrap try/catch for region: R(4:70|71|72|73) */
    /* JADX WARNING: Missing block: B:41:?, code skipped:
            r8.d().f.a("Failed to load event from local database");
     */
    /* JADX WARNING: Missing block: B:43:?, code skipped:
            r15.recycle();
     */
    /* JADX WARNING: Missing block: B:55:?, code skipped:
            r8.d().f.a("Failed to load user property from local database");
     */
    /* JADX WARNING: Missing block: B:57:?, code skipped:
            r15.recycle();
            r0 = null;
     */
    /* JADX WARNING: Missing block: B:71:?, code skipped:
            r8.d().f.a("Failed to load conditional user property from local database");
     */
    /* JADX WARNING: Missing block: B:73:?, code skipped:
            r15.recycle();
            r0 = null;
     */
    public final void w(c.e.a.b.f.b.i3 r28, com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable r29, com.google.android.gms.measurement.internal.zzn r30) {
        /*
        r27 = this;
        r1 = r28;
        r2 = r29;
        r3 = r30;
        r27.g();
        r27.t();
        r4 = 100;
        r5 = 0;
        r0 = 100;
        r6 = 0;
    L_0x0012:
        r7 = 1001; // 0x3e9 float:1.403E-42 double:4.946E-321;
        if (r6 >= r7) goto L_0x02b7;
    L_0x0016:
        if (r0 != r4) goto L_0x02b7;
    L_0x0018:
        r7 = new java.util.ArrayList;
        r7.<init>();
        r8 = r27.r();
        r9 = "Error reading entries from local database";
        r8.g();
        r0 = r8.d;
        if (r0 == 0) goto L_0x002b;
    L_0x002a:
        goto L_0x0055;
    L_0x002b:
        r11 = new java.util.ArrayList;
        r11.<init>();
        r0 = r8.a;
        r0 = r0.a;
        r12 = "google_app_measurement_local.db";
        r0 = r0.getDatabasePath(r12);
        r0 = r0.exists();
        if (r0 != 0) goto L_0x0042;
    L_0x0040:
        r10 = r11;
        goto L_0x0056;
    L_0x0042:
        r12 = 5;
        r13 = 0;
        r14 = 5;
    L_0x0045:
        if (r13 >= r12) goto L_0x022b;
    L_0x0047:
        r15 = 1;
        r10 = r8.A();	 Catch:{ SQLiteFullException -> 0x01fd, SQLiteDatabaseLockedException -> 0x01e8, SQLiteException -> 0x01c1, all -> 0x01bd }
        if (r10 != 0) goto L_0x005a;
    L_0x004e:
        r8.d = r15;	 Catch:{ SQLiteFullException -> 0x01b6, SQLiteDatabaseLockedException -> 0x01ba, SQLiteException -> 0x01b2, all -> 0x01af }
        if (r10 == 0) goto L_0x0055;
    L_0x0052:
        r10.close();
    L_0x0055:
        r10 = 0;
    L_0x0056:
        r17 = 0;
        goto L_0x0239;
    L_0x005a:
        r10.beginTransaction();	 Catch:{ SQLiteFullException -> 0x01b6, SQLiteDatabaseLockedException -> 0x01ba, SQLiteException -> 0x01b2, all -> 0x01af }
        r16 = c.e.a.b.f.b.m3.w(r10);	 Catch:{ SQLiteFullException -> 0x01b6, SQLiteDatabaseLockedException -> 0x01ba, SQLiteException -> 0x01b2, all -> 0x01af }
        r25 = -1;
        r0 = (r16 > r25 ? 1 : (r16 == r25 ? 0 : -1));
        if (r0 == 0) goto L_0x0076;
    L_0x0067:
        r0 = "rowid<?";
        r12 = new java.lang.String[r15];	 Catch:{ SQLiteFullException -> 0x01b6, SQLiteDatabaseLockedException -> 0x01ba, SQLiteException -> 0x01b2, all -> 0x01af }
        r16 = java.lang.String.valueOf(r16);	 Catch:{ SQLiteFullException -> 0x01b6, SQLiteDatabaseLockedException -> 0x01ba, SQLiteException -> 0x01b2, all -> 0x01af }
        r12[r5] = r16;	 Catch:{ SQLiteFullException -> 0x01b6, SQLiteDatabaseLockedException -> 0x01ba, SQLiteException -> 0x01b2, all -> 0x01af }
        r19 = r0;
        r20 = r12;
        goto L_0x007a;
    L_0x0076:
        r19 = 0;
        r20 = 0;
    L_0x007a:
        r17 = "messages";
        r0 = "rowid";
        r12 = "type";
        r15 = "entry";
        r18 = new java.lang.String[]{r0, r12, r15};	 Catch:{ SQLiteFullException -> 0x01b6, SQLiteDatabaseLockedException -> 0x01ba, SQLiteException -> 0x01b2, all -> 0x01af }
        r21 = 0;
        r22 = 0;
        r23 = "rowid asc";
        r24 = java.lang.Integer.toString(r4);	 Catch:{ SQLiteFullException -> 0x01b6, SQLiteDatabaseLockedException -> 0x01ba, SQLiteException -> 0x01b2, all -> 0x01af }
        r16 = r10;
        r12 = r16.query(r17, r18, r19, r20, r21, r22, r23, r24);	 Catch:{ SQLiteFullException -> 0x01b6, SQLiteDatabaseLockedException -> 0x01ba, SQLiteException -> 0x01b2, all -> 0x01af }
    L_0x0096:
        r0 = r12.moveToNext();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        if (r0 == 0) goto L_0x0167;
    L_0x009c:
        r25 = r12.getLong(r5);	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r15 = 1;
        r0 = r12.getInt(r15);	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r15 = 2;
        r4 = r12.getBlob(r15);	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        if (r0 != 0) goto L_0x00df;
    L_0x00ac:
        r15 = android.os.Parcel.obtain();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r0 = r4.length;	 Catch:{ a -> 0x00cb }
        r15.unmarshall(r4, r5, r0);	 Catch:{ a -> 0x00cb }
        r15.setDataPosition(r5);	 Catch:{ a -> 0x00cb }
        r0 = com.google.android.gms.measurement.internal.zzaq.CREATOR;	 Catch:{ a -> 0x00cb }
        r0 = r0.createFromParcel(r15);	 Catch:{ a -> 0x00cb }
        r0 = (com.google.android.gms.measurement.internal.zzaq) r0;	 Catch:{ a -> 0x00cb }
        r15.recycle();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        if (r0 == 0) goto L_0x0163;
    L_0x00c4:
        r11.add(r0);	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        goto L_0x0163;
    L_0x00c9:
        r0 = move-exception;
        goto L_0x00db;
    L_0x00cb:
        r0 = r8.d();	 Catch:{ all -> 0x00c9 }
        r0 = r0.f;	 Catch:{ all -> 0x00c9 }
        r4 = "Failed to load event from local database";
        r0.a(r4);	 Catch:{ all -> 0x00c9 }
        r15.recycle();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        goto L_0x0163;
    L_0x00db:
        r15.recycle();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        throw r0;	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
    L_0x00df:
        r15 = 1;
        if (r0 != r15) goto L_0x0114;
    L_0x00e2:
        r15 = android.os.Parcel.obtain();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r0 = r4.length;	 Catch:{ a -> 0x00fb }
        r15.unmarshall(r4, r5, r0);	 Catch:{ a -> 0x00fb }
        r15.setDataPosition(r5);	 Catch:{ a -> 0x00fb }
        r0 = com.google.android.gms.measurement.internal.zzku.CREATOR;	 Catch:{ a -> 0x00fb }
        r0 = r0.createFromParcel(r15);	 Catch:{ a -> 0x00fb }
        r0 = (com.google.android.gms.measurement.internal.zzku) r0;	 Catch:{ a -> 0x00fb }
        r15.recycle();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        goto L_0x010a;
    L_0x00f9:
        r0 = move-exception;
        goto L_0x0110;
    L_0x00fb:
        r0 = r8.d();	 Catch:{ all -> 0x00f9 }
        r0 = r0.f;	 Catch:{ all -> 0x00f9 }
        r4 = "Failed to load user property from local database";
        r0.a(r4);	 Catch:{ all -> 0x00f9 }
        r15.recycle();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r0 = 0;
    L_0x010a:
        if (r0 == 0) goto L_0x0163;
    L_0x010c:
        r11.add(r0);	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        goto L_0x0163;
    L_0x0110:
        r15.recycle();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        throw r0;	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
    L_0x0114:
        r15 = 2;
        if (r0 != r15) goto L_0x0149;
    L_0x0117:
        r15 = android.os.Parcel.obtain();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r0 = r4.length;	 Catch:{ a -> 0x0130 }
        r15.unmarshall(r4, r5, r0);	 Catch:{ a -> 0x0130 }
        r15.setDataPosition(r5);	 Catch:{ a -> 0x0130 }
        r0 = com.google.android.gms.measurement.internal.zzz.CREATOR;	 Catch:{ a -> 0x0130 }
        r0 = r0.createFromParcel(r15);	 Catch:{ a -> 0x0130 }
        r0 = (com.google.android.gms.measurement.internal.zzz) r0;	 Catch:{ a -> 0x0130 }
        r15.recycle();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        goto L_0x013f;
    L_0x012e:
        r0 = move-exception;
        goto L_0x0145;
    L_0x0130:
        r0 = r8.d();	 Catch:{ all -> 0x012e }
        r0 = r0.f;	 Catch:{ all -> 0x012e }
        r4 = "Failed to load conditional user property from local database";
        r0.a(r4);	 Catch:{ all -> 0x012e }
        r15.recycle();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r0 = 0;
    L_0x013f:
        if (r0 == 0) goto L_0x0163;
    L_0x0141:
        r11.add(r0);	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        goto L_0x0163;
    L_0x0145:
        r15.recycle();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        throw r0;	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
    L_0x0149:
        r4 = 3;
        if (r0 != r4) goto L_0x0158;
    L_0x014c:
        r0 = r8.d();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r0 = r0.i;	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r4 = "Skipping app launch break";
        r0.a(r4);	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        goto L_0x0163;
    L_0x0158:
        r0 = r8.d();	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r0 = r0.f;	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r4 = "Unknown record type in local database";
        r0.a(r4);	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
    L_0x0163:
        r4 = 100;
        goto L_0x0096;
    L_0x0167:
        r0 = "messages";
        r4 = "rowid <= ?";
        r15 = 1;
        r5 = new java.lang.String[r15];	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r15 = java.lang.Long.toString(r25);	 Catch:{ SQLiteFullException -> 0x01ab, SQLiteDatabaseLockedException -> 0x01a8, SQLiteException -> 0x01a4 }
        r17 = 0;
        r5[r17] = r15;	 Catch:{ SQLiteFullException -> 0x019c, SQLiteDatabaseLockedException -> 0x01ec, SQLiteException -> 0x019a }
        r0 = r10.delete(r0, r4, r5);	 Catch:{ SQLiteFullException -> 0x019c, SQLiteDatabaseLockedException -> 0x01ec, SQLiteException -> 0x019a }
        r4 = r11.size();	 Catch:{ SQLiteFullException -> 0x019c, SQLiteDatabaseLockedException -> 0x01ec, SQLiteException -> 0x019a }
        if (r0 >= r4) goto L_0x018b;
    L_0x0180:
        r0 = r8.d();	 Catch:{ SQLiteFullException -> 0x019c, SQLiteDatabaseLockedException -> 0x01ec, SQLiteException -> 0x019a }
        r0 = r0.f;	 Catch:{ SQLiteFullException -> 0x019c, SQLiteDatabaseLockedException -> 0x01ec, SQLiteException -> 0x019a }
        r4 = "Fewer entries removed from local database than expected";
        r0.a(r4);	 Catch:{ SQLiteFullException -> 0x019c, SQLiteDatabaseLockedException -> 0x01ec, SQLiteException -> 0x019a }
    L_0x018b:
        r10.setTransactionSuccessful();	 Catch:{ SQLiteFullException -> 0x019c, SQLiteDatabaseLockedException -> 0x01ec, SQLiteException -> 0x019a }
        r10.endTransaction();	 Catch:{ SQLiteFullException -> 0x019c, SQLiteDatabaseLockedException -> 0x01ec, SQLiteException -> 0x019a }
        r12.close();
        r10.close();
        r10 = r11;
        goto L_0x0239;
    L_0x019a:
        r0 = move-exception;
        goto L_0x01c6;
    L_0x019c:
        r0 = move-exception;
        goto L_0x0202;
    L_0x019f:
        r0 = move-exception;
        r1 = r10;
        r10 = r12;
        goto L_0x0220;
    L_0x01a4:
        r0 = move-exception;
        r17 = 0;
        goto L_0x01c6;
    L_0x01a8:
        r17 = 0;
        goto L_0x01ec;
    L_0x01ab:
        r0 = move-exception;
        r17 = 0;
        goto L_0x0202;
    L_0x01af:
        r0 = move-exception;
        r1 = r10;
        goto L_0x01bf;
    L_0x01b2:
        r0 = move-exception;
        r17 = 0;
        goto L_0x01c5;
    L_0x01b6:
        r0 = move-exception;
        r17 = 0;
        goto L_0x0201;
    L_0x01ba:
        r17 = 0;
        goto L_0x01eb;
    L_0x01bd:
        r0 = move-exception;
        r1 = 0;
    L_0x01bf:
        r10 = 0;
        goto L_0x0220;
    L_0x01c1:
        r0 = move-exception;
        r17 = 0;
        r10 = 0;
    L_0x01c5:
        r12 = 0;
    L_0x01c6:
        if (r10 == 0) goto L_0x01d1;
    L_0x01c8:
        r4 = r10.inTransaction();	 Catch:{ all -> 0x019f }
        if (r4 == 0) goto L_0x01d1;
    L_0x01ce:
        r10.endTransaction();	 Catch:{ all -> 0x019f }
    L_0x01d1:
        r4 = r8.d();	 Catch:{ all -> 0x019f }
        r4 = r4.f;	 Catch:{ all -> 0x019f }
        r4.b(r9, r0);	 Catch:{ all -> 0x019f }
        r4 = 1;
        r8.d = r4;	 Catch:{ all -> 0x019f }
        if (r12 == 0) goto L_0x01e2;
    L_0x01df:
        r12.close();
    L_0x01e2:
        if (r10 == 0) goto L_0x0218;
    L_0x01e4:
        r10.close();
        goto L_0x0218;
    L_0x01e8:
        r17 = 0;
        r10 = 0;
    L_0x01eb:
        r12 = 0;
    L_0x01ec:
        r4 = (long) r14;
        android.os.SystemClock.sleep(r4);	 Catch:{ all -> 0x019f }
        r14 = r14 + 20;
        if (r12 == 0) goto L_0x01f7;
    L_0x01f4:
        r12.close();
    L_0x01f7:
        if (r10 == 0) goto L_0x0218;
    L_0x01f9:
        r10.close();
        goto L_0x0218;
    L_0x01fd:
        r0 = move-exception;
        r17 = 0;
        r10 = 0;
    L_0x0201:
        r12 = 0;
    L_0x0202:
        r4 = r8.d();	 Catch:{ all -> 0x019f }
        r4 = r4.f;	 Catch:{ all -> 0x019f }
        r4.b(r9, r0);	 Catch:{ all -> 0x019f }
        r4 = 1;
        r8.d = r4;	 Catch:{ all -> 0x019f }
        if (r12 == 0) goto L_0x0213;
    L_0x0210:
        r12.close();
    L_0x0213:
        if (r10 == 0) goto L_0x0218;
    L_0x0215:
        r10.close();
    L_0x0218:
        r13 = r13 + 1;
        r4 = 100;
        r5 = 0;
        r12 = 5;
        goto L_0x0045;
    L_0x0220:
        if (r10 == 0) goto L_0x0225;
    L_0x0222:
        r10.close();
    L_0x0225:
        if (r1 == 0) goto L_0x022a;
    L_0x0227:
        r1.close();
    L_0x022a:
        throw r0;
    L_0x022b:
        r17 = 0;
        r0 = r8.d();
        r0 = r0.i;
        r4 = "Failed to read events from database in reasonable time";
        r0.a(r4);
        r10 = 0;
    L_0x0239:
        if (r10 == 0) goto L_0x0244;
    L_0x023b:
        r7.addAll(r10);
        r0 = r10.size();
        r4 = r0;
        goto L_0x0245;
    L_0x0244:
        r4 = 0;
    L_0x0245:
        r5 = 100;
        if (r2 == 0) goto L_0x024e;
    L_0x0249:
        if (r4 >= r5) goto L_0x024e;
    L_0x024b:
        r7.add(r2);
    L_0x024e:
        r8 = r7.size();
        r0 = 0;
    L_0x0253:
        if (r0 >= r8) goto L_0x02af;
    L_0x0255:
        r9 = r7.get(r0);
        r10 = r0 + 1;
        r9 = (com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable) r9;
        r0 = r9 instanceof com.google.android.gms.measurement.internal.zzaq;
        if (r0 == 0) goto L_0x0274;
    L_0x0261:
        r9 = (com.google.android.gms.measurement.internal.zzaq) r9;	 Catch:{ RemoteException -> 0x0267 }
        r1.t0(r9, r3);	 Catch:{ RemoteException -> 0x0267 }
        goto L_0x02ad;
    L_0x0267:
        r0 = move-exception;
        r9 = r27.d();
        r9 = r9.f;
        r11 = "Failed to send event to the service";
        r9.b(r11, r0);
        goto L_0x02ad;
    L_0x0274:
        r0 = r9 instanceof com.google.android.gms.measurement.internal.zzku;
        if (r0 == 0) goto L_0x028b;
    L_0x0278:
        r9 = (com.google.android.gms.measurement.internal.zzku) r9;	 Catch:{ RemoteException -> 0x027e }
        r1.D0(r9, r3);	 Catch:{ RemoteException -> 0x027e }
        goto L_0x02ad;
    L_0x027e:
        r0 = move-exception;
        r9 = r27.d();
        r9 = r9.f;
        r11 = "Failed to send user property to the service";
        r9.b(r11, r0);
        goto L_0x02ad;
    L_0x028b:
        r0 = r9 instanceof com.google.android.gms.measurement.internal.zzz;
        if (r0 == 0) goto L_0x02a2;
    L_0x028f:
        r9 = (com.google.android.gms.measurement.internal.zzz) r9;	 Catch:{ RemoteException -> 0x0295 }
        r1.G0(r9, r3);	 Catch:{ RemoteException -> 0x0295 }
        goto L_0x02ad;
    L_0x0295:
        r0 = move-exception;
        r9 = r27.d();
        r9 = r9.f;
        r11 = "Failed to send conditional user property to the service";
        r9.b(r11, r0);
        goto L_0x02ad;
    L_0x02a2:
        r0 = r27.d();
        r0 = r0.f;
        r9 = "Discarding data. Unrecognized parcel type.";
        r0.a(r9);
    L_0x02ad:
        r0 = r10;
        goto L_0x0253;
    L_0x02af:
        r6 = r6 + 1;
        r0 = r4;
        r4 = 100;
        r5 = 0;
        goto L_0x0012;
    L_0x02b7:
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.a.b.f.b.q7.w(c.e.a.b.f.b.i3, com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable, com.google.android.gms.measurement.internal.zzn):void");
    }

    public final void y(zzz zzz) {
        boolean z;
        g();
        t();
        m3 r = r();
        r.k();
        byte[] g0 = t9.g0(zzz);
        if (g0.length > 131072) {
            r.d().g.a("Conditional user property too long for local database. Sending directly to service");
            z = false;
        } else {
            z = r.x(2, g0);
        }
        z(new g8(this, z, new zzz(zzz), I(true), zzz));
    }

    public final void z(Runnable runnable) throws IllegalStateException {
        g();
        if (B()) {
            runnable.run();
        } else if (((long) this.h.size()) >= 1000) {
            d().f.a("Discarding data. Max runnable queue size reached");
        } else {
            this.h.add(runnable);
            this.i.b(60000);
            C();
        }
    }
}
